<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>:: Open external URL :: <?= $_SERVER["SERVER_NAME"] ?> ::</title>

<style type="text/css">

body {
  font-family: Lucida Grande, Tahoma, Verdana, Arial, Helvetica, sans-serif;
  background: #F5F5F5;
}

/* GOD!!! http://coding.smashingmagazine.com/2013/08/09/absolute-horizontal-vertical-centering-css/ */
.AbsoluteCenter {

  /* Absolute vertical centering */
  margin: auto;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;

  /* Declared height */
  display: table;
  height: auto;

  /* Horizontal centering */
  width: 100%;
  text-align: center;

}

a, a:visited {
  color: #80868f;
  font-size: 20pt;
  text-decoration: none;
  text-shadow: 1px 1px 0px white;
}

a:hover {
  color: #4E4E4F;
}

</style>

</head>

<body>

<div class="AbsoluteCenter">
<?php

if ( isset($_GET['url']) && isset($_GET['title']) ) {
  print '<a href="' . $_GET['url'] . '" target="_blank"/>Open ' . $_GET['title'] . ' in a new window</a>';
}
else {
  print 'Error: specify a URL via the "url" parameter and a title via the "title" parameter.';
}

?>
</div>

</body>

</html>
